package com.nycreativity.elecreativity.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.nycreativity.elecreativity.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import org.springframework.util.ObjectUtils

/**
 * <p>
 * 
 * </p>
 *
 * @author sxt && ttxxi
 * @since 2021-03-11
 */
class Brand : BaseEntity() {

    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    var id: Long? = null
    /**
     * 品牌名称
     */
    var brand: String? = null
    /**
     * 介绍
     */
    var description: String? = null
    /**
     * 由来
     */
    var origin: String? = null
    /**
     * 特色
     */
    var feature: String? = null


    override fun toString(): String {
        return "Brand{" +
        "id=" + id +
        ", brand=" + brand +
        ", description=" + description +
        ", origin=" + origin +
        ", feature=" + feature +
        ", ${super.toString()}}"
    }

    fun isEmpty(): Boolean{
        return ObjectUtils.isEmpty(id) && ObjectUtils.isEmpty(brand) && ObjectUtils.isEmpty(description) && ObjectUtils.isEmpty(origin) && ObjectUtils.isEmpty(feature)
    }
}
